using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace DiscuzRobot
{
    public partial class fmPostedDataAdd : Form
    {
        public fmPostedDataAdd()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(this.textBox1.Text) || string.IsNullOrEmpty(this.richTextBox1.Text)) return;

            File.WriteAllText(Global . APP_DefautlPostedPath + "\\" + this.textBox1.Text + ".txt", this.richTextBox1.Text);
            this.DialogResult = DialogResult.OK;
        }

        private void fmPostedDataAdd_Load(object sender, EventArgs e)
        {
            this.textBox1.Focus();
        }
    }
}